package factory_pattern.abstract_factory_pattern.elf;

import factory_pattern.abstract_factory_pattern.Army;
import factory_pattern.abstract_factory_pattern.Castle;
import factory_pattern.abstract_factory_pattern.King;
import factory_pattern.abstract_factory_pattern.KingdomFactory;

/**
 * 精灵王国接口
 */
public class ElfKingdomFactory implements KingdomFactory {
    @Override
    public Castle createCastle() {
        return new ElfCastle();
    }

    @Override
    public King createKing() {
        return new ElfKing();
    }

    @Override
    public Army createArmy() {
        return new ElfArmy();
    }
}
